package com.jic.order.manage.response;

import com.alibaba.fastjson.JSON;
import com.jic.order.manage.response.base.BaseResponse;
import com.jic.order.request.base.BaseRequest;
import lombok.Getter;
import lombok.Setter;
import springfox.documentation.spring.web.json.Json;

import java.util.List;

/**
 * 订单运费模板
 * @author : 
 * @email : 
 * @since : 2020-02-26 10:53:12
 * @version : v1.0.0
 */
@Getter
@Setter
public class OrderFreightTemplateResponse extends BaseResponse {
    //唯一主键
    private Long id;
    //运费模板名称
    private String name;
    //模板类型 {0: 基本模板类型; 1:O+O模板类型; }
    private Integer templateType;
    //10:自定义运费; 11:卖家承担运费;
    private Integer type;
    //是否默认模板，0不是1是
    private Integer defaultFlag;
    //计费方式  10:按件数; 11:按重量; 12:按体积; 13:按金额;
    private Integer chargeWay;
    //渠道模式，保存格式(BBC,S2B,POS,B2B,O+O)
    private String channelMode;

    private List<OrderFreightTemplateItemResponse> orderFreightTemplateItemResponseList; //自定义运费条目
    //自定义运费规则数组
    private List<JSON> freightRuleList;

    //是否存在指定包邮模板
    private Boolean isShipping;

    private List<OrderFreightTemplateItemResponse> shippingFreightTemplateItemResponseList; //指定运费运费条目
    //自定义运费规则数组
    private List<JSON> shippingFreightRuleList;
}